PrizmDoc
Multi-Server Mode

GET /Service/Properties/Servers

Returns the list of PrizmDoc servers that a PrizmDoc Cloud Entry Point can route requests to. The list of servers returned here must first have been set by a request sent to PUT /PCCIS/V1/Service/Properties/Servers.

This URL is only available when PrizmDoc is running in Multi-Server Mode. See the PrizmDoc Multi-Server Mode topic for more details of this feature.

Http Method

GET

Resource URL

/PCCIS/V1/Service/Properties/Servers

Parameters

None

Request Body

None

Response Body

A JSON representation containing the IP address and port for all PrizmDoc servers in the current node.

Example
Copy Code
GET http://192.168.0.1:18682/PCCIS/V1/Service/Properties/Servers
Example Response
Copy Code
{
   "servers": [
            {
            "address": "192.168.0.1",
            "port": "18681"
            },
            {
            "address": "192.168.0.2",
            "port": "18681"
            },
            {
            "address": "192.168.0.3",
            "port": "18681"
            }
   ]
}

PUT /Service/Properties/Servers

Sets the list of PrizmDoc servers that a PrizmDoc Cloud Entry Point can route requests to. This list of servers is used by each PrizmDoc Cloud Entry Point to evenly spread out the requests for new viewing sessions across all available PrizmDoc servers, as well as route request for existing viewing session to the PrizmDoc server that originally created it.

The list of servers set with this request should also include the PrizmDoc server hosting the Cloud Entry Point where this list is currently being set. For example, if this request is sent to the Cloud Entry Point hosted at "192.168.0.1:18682", the list of servers should include the host and port of the Server Entry Point on the same sever, "192.168.0.1:18681".

This URL is only available when PrizmDoc is running in multi-server mode. See the PrizmDoc Multi-Server Mode topic for more details of this feature.

Http Method

PUT

Resource URL

/PCCIS/V1/Service/Properties/Servers

Parameters

None

Request Body

A JSON representation containing the IP address and port for all PrizmDoc servers in the current node.

Response Body

None

Example
Copy Code
PUT http://192.168.0.1:18682/PCCIS/V1/Service/Properties/Servers
{
   "servers": [
            {
            "address": "192.168.0.1",
            "port": "18681"
            },
            {
            "address": "192.168.0.2",
            "port": "18681"
            },
            {
            "address": "192.168.0.3",
            "port": "18681"
            }
   ]
}
Example Response
Copy Code
200 OK

 

 

 


©2016. Accusoft Corporation. All Rights Reserved.

Send Feedback